package com.vcc.msc.sbs.proxy;

import java.util.ArrayList;
import java.util.List;

import com.vcc.msc.sbs.entity.WesEntity;

public class WesProxyServiceMock implements WesProxy {

	@Override
	public WesEntity getWesDetails(String version, String typeCode, String wesId) {

		WesEntity wesEntity = new WesEntity();

		wesEntity.setDate("09022011");
		wesEntity.setDescription("Wes Description here.");
		wesEntity.setTypeCode("2901");
		wesEntity.setCdsId("pmukher4");
		wesEntity.setVersion("PROD");
		wesEntity.setWesId("wesid01/01");
		wesEntity.setWesName("Wes Name here.");

		return wesEntity;
	}

	@Override
	public List<String> getWesIds(String typeCode) {
		List<String> wesIdList = new ArrayList<String>();

		wesIdList.add("wes01/01");
		wesIdList.add("wes02/02");
		wesIdList.add("wes01/02");
		wesIdList.add("wes02/03");
		return wesIdList;
	}

	@Override
	public boolean addWesImage() {
		// TODO Auto-generated method stub
		return true;
	}

	@Override
	public boolean updateWes() {
		// TODO Auto-generated method stub
		return true;
	}

	@Override
	public boolean sendPdf() {
		// TODO Auto-generated method stub
		return true;
	}

	@Override
	public byte[] getWesImage() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<WesEntity> getWesList(String version, String typeCode,
			String wesNo) {
		List<WesEntity> wesList = new ArrayList<WesEntity>();

		WesEntity wesEntity = new WesEntity();

		wesEntity.setDate("09022011");
		wesEntity.setDescription("Wes Description here.");
		wesEntity.setTypeCode("2901");
		wesEntity.setCdsId("pmukher4");
		wesEntity.setVersion("PROD");
		wesEntity.setWesId("wesid01/01");
		wesEntity.setWesName("Wes Name here.");

		wesList.add(wesEntity);

		WesEntity wesEntity1 = new WesEntity();

		wesEntity1.setDate("09022012");
		wesEntity1.setDescription("Wes1 Description here.");
		wesEntity1.setTypeCode("2901");
		wesEntity1.setCdsId("pmukher4");
		wesEntity1.setVersion("PROD");
		wesEntity1.setWesId("wesid02/02");
		wesEntity1.setWesName("Wes1 Name here.");
		wesList.add(wesEntity1);

		WesEntity wesEntity2 = new WesEntity();

		wesEntity2.setDate("09022012");
		wesEntity2.setDescription("Wes2 Description here.");
		wesEntity2.setTypeCode("2901");
		wesEntity2.setCdsId("pmukher4");
		wesEntity2.setVersion("PROD");
		wesEntity2.setWesId("wesid03/02");
		wesEntity2.setWesName("Wes3 Name here.");
		wesList.add(wesEntity2);

		return wesList;
	}

}
